<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table border="1" cellspacing="0" align="center">
    <caption>商品信息详情</caption>
    <tr>
        <td>商品种类</td>
        <td>过季旧款</td>
        <td>当前热销</td>
        <td>秋季新品</td>
    </tr>
    <tr>
        <td>商品状态</td>
        <td id="down">已下架</td>
        <td class="up"><span>热卖中</span></td>
        <td class="up">等待上架</td>
    </tr>
</table>
<script>
    var downGoods=document.getElementById('down');
    console.log(downGoods.innerHTML);
    var upGoodss=document.getElementsByClassName('up');
    console.log(upGoodss[0].innerHTML);
    upGoodss[1].innerHTML='已上架';
</script>
</body>
</html>